local UIBase = import("UI/UIBase")

if not Log then
    Log = CS.KEngine.Log
end

if not Time then 
	Time = CS.UnityEngine.Time
end

local TestLuaBehaivour = {}
extends(TestLuaBehaivour, UIBase)

function TestLuaBehaivour:Awake()
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
    Log.Info("Test Lua Behaivour Awake!")
end
function TestLuaBehaivour:Update()

    if Time.frameCount % 100 == 0 then
        --Log.Info("Test Lua Behaivour Update!")
    end
end

function TestLuaBehaivour:Start()
    Log.Info("Test Lua Behaivour start!")
	print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
	print(self)
	local name1 = self:GetUIText('Name')
	Log.Info(name1)
	-- local name = self.Name
	-- Log.Info(name)
	-- name.text = "我是lua修改的name"
end

return TestLuaBehaivour


